package com.lapian.designmode.flyweight.my;

public class Client {
    public static void main(String[] args) {
        DouLuoDaLuFactory douLuoDaLuFactory = new DouLuoDaLuFactory();
        AbstractRole website1=douLuoDaLuFactory.getRoleCategory("控制系");
        website1.use(new User("唐三"));
        AbstractRole website2=douLuoDaLuFactory.getRoleCategory("敏攻系");
        website2.use(new User("小舞"));
        AbstractRole website3=douLuoDaLuFactory.getRoleCategory("食物系");
        website3.use(new User("奥斯卡"));
        AbstractRole website4=douLuoDaLuFactory.getRoleCategory("强攻系");
        website4.use(new User("戴沐白"));
        AbstractRole website5=douLuoDaLuFactory.getRoleCategory("辅助系");
        website5.use(new User("宁荣荣"));
        AbstractRole website6=douLuoDaLuFactory.getRoleCategory("敏攻系");
        website5.use(new User("朱竹清"));
        System.out.println("魂师的分类共："+douLuoDaLuFactory.getRoleCount());
    }
}
